package com.wavecoler.coach.objects;

import javax.jdo.annotations.*;
import com.google.appengine.api.datastore.*;
import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Participant {

	@PrimaryKey
	@Persistent
	private int color;
	@Persistent
	private String id;
	@Persistent
	private int totalContributions;
	@Persistent
	private String participation;

	public Participant(String idU, int colorU) {
		id = idU;
		color = colorU;
		totalContributions = 0;
	}

	public int getTotalContributions() {
		return totalContributions;
	}

	public void setTotalContributions(int totalContributions) {
		this.totalContributions = totalContributions;
	}

	public String getId() {
		return id;
	}

	public int getColor() {
		return color;
	}

	public void setParticipation(String participation) {
		this.participation = participation;
	}

	public String getParticipation() {
		return participation;
	}

}
